package utils;

import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

/**
 * @version V1.0
 * @Title:
 * @Package
 * @Description:
 * @author: runoob
 * @date:
 */
public class ImageUtils {

    public static ImageIcon common = new ImageIcon("resources/image/common(70).png");
    public static ImageIcon nullImg = new ImageIcon("resources/image/null.png");
    public static ImageIcon bg = new ImageIcon("resources/image/bg.png");
    public static ImageIcon unknown = new ImageIcon("resources/image/unknown.png");
    public static ImageIcon get = new ImageIcon("resources/image/get.png");
    public static ImageIcon post = new ImageIcon("resources/image/post.png");
    public static ImageIcon tab = new ImageIcon("resources/image/tab.png");
    public static ImageIcon label = new ImageIcon("resources/image/label.png");
    public static ImageIcon add = new ImageIcon("resources/image/add.png");
    public static ImageIcon search = new ImageIcon("resources/image/search.png");
    public static BufferedImage logo;
    public static BufferedImage yes;
    public static BufferedImage no;
    public static BufferedImage newImg;
    public static BufferedImage clearImg;
    public static BufferedImage sendImg;
    public static BufferedImage barImg;
    public static BufferedImage tabImg;
    public static BufferedImage labelImg;
    public static BufferedImage getImg;
    public static BufferedImage postImg;
    public static BufferedImage operateImg;
    public static BufferedImage comboImg;
    public static BufferedImage sureImg;
    public static BufferedImage cancelImg;
    public static BufferedImage copyImg;
    static {
        try {
            logo = ImageIO.read(new File("resources/image/logo.png"));
            yes = ImageIO.read(new File("resources/image/yes.png"));
            no = ImageIO.read(new File("resources/image/no.png"));
            newImg = ImageIO.read(new File("resources/image/new.png"));
            clearImg = ImageIO.read(new File("resources/image/clear.png"));
            sendImg = ImageIO.read(new File("resources/image/send.png"));
            barImg = ImageIO.read(new File("resources/image/line.png"));
            tabImg = ImageIO.read(new File("resources/image/tab.png"));
            labelImg = ImageIO.read(new File("resources/image/label.png"));
            getImg = ImageIO.read(new File("resources/image/get.png"));
            postImg = ImageIO.read(new File("resources/image/post.png"));
            operateImg = ImageIO.read(new File("resources/image/operate.png"));
            comboImg = ImageIO.read(new File("resources/image/combo.png"));
            sureImg = ImageIO.read(new File("resources/image/sure.png"));
            cancelImg = ImageIO.read(new File("resources/image/cancel.png"));
            copyImg = ImageIO.read(new File("resources/image/copy.png"));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}
